{include file='header.html'}

{include file='cyitem/nav.html'}
<div class="rbox">
<ul class="nav nav-tabs" id="myTab" style="margin-top:10px;">
<li class="active"><a href="#p_base"  data-toggle="tab" >基本信息</a></li>
<li><a href="#p_other"  data-toggle="tab" >扩展信息</a></li>
 
</ul>
{if $data.catid}
<p class="pd-10"><a href="/index.php?m=show&id={$data.id}" target="_blank" class="btn btn-success">查看前台</a></p> 
{/if} 
<form method="post" action="{$appadmin}?m=cyitem&a=save">
<input type="hidden" name="id" value="{$data.id}" />
<div class="tab-content"> 
<div class="tab-pane active" id="p_base"> 
<table width="100%" border="0" class="table table-bordered">
  <tr>
    <td width="100" align="right"> 标题：</td>
    <td width=""><input name="title" type="text" id="title" value="{$data.title}" size="80"></td>
  </tr>
  <tr>
    <td align="right">分类：</td>
    <td>
    <select name="catid" class="w150">
    <option value="0">请选择</option>
    {foreach item=c from=$cat_list}
                <option value="{$c.catid}" {if $data.catid eq $c.catid} selected="selected"{/if}>{$c.cname}</option>
                {foreach item=c_2 from=$c.child}
                	<option value="{$c_2.catid}" {if $data.catid eq $c_2.catid} selected="selected"{/if} class="o_c_2">|__{$c_2.cname}</option>
                    {foreach item=c_3 from=$c_2.child}
                    <option value="{$c_3.catid}" {if $data.catid eq $c_3.catid} selected="selected"{/if} class="o_c_3"> |____{$c_3.cname}</option>
                    {/foreach}
                {/foreach}
                {/foreach}
    </select>
    
    
    
    </td>
  </tr>
  
   <tr>
    <td align="right">图片：</td>
    <td>
    <div id="up1" url="/index.php?m=upload&a=uploadtao&dir=cyitem&id={$data.id}">
    	<div class="btn-upload">
          <input type="file" name="upimg" id="ud"  class="btn-upload-file" onChange="uploadimg('up1')">
         </div>
 
          <input type="hidden" name="imgurl" class="imgurl" value="{$data.imgurl}">
          <span class="imgShow">
          {if $data.imgurl}
          <img src="{$data.imgurl|images_site}.100x100.jpg">
          {/if}
          </span>
      </div>
      </td>
  </tr>
  
  <tr>
    <td align="right">seo关键字：</td>
    <td><input name="keywords" type="text" id="keywords" value="{$data.keywords}" class="w600" /></td>
  </tr>
  <tr>
    <td align="right">seo描述：</td>
    <td><textarea name="description" id="description" class="w600 h60">{$data.description}</textarea></td>
  </tr>
  <tr>
    <td align="right">内容：</td>
    <td><script type="text/plain" id="content" name="content" >{$data.content}</script></td>
  </tr>
  
</table>
</div>
<!--扩展信息-->
<div class="tab-pane active" id="p_other">
<table class="table table-bordered">
 
    
    <tr>
    	<td width="100">项目状态</td>
        <td>{foreach item=c key=k from=$item_status_list}
        		<input type="radio" name="item_status" {if $k eq $data.item_status} checked="checked"{/if} value="{$k}" /> {$c} &nbsp;
            {/foreach}
        </td>
    </tr>
     
    
    <tr>
    	<td>发起人姓名</td>
        <td><input type="text" name="truename" value="{$data.truename}" /></td>
    </tr>
    <tr>
    	<td>发起人手机</td>
        <td><input type="text" name="telephone" value="{$data.telephone}" /></td>
    </tr>
    
    
    
    <tr>
    	<td>截止时间</td>
        <td><input type="text" name="endtime" id="endtime" value="{$data.endtime|date:Y-m-d H:i:s}"  onClick="WdatePicker({dateFmt:'yyyy-MM-dd H:m:s'})" /></td>
    </tr>
    
     <tr>
                            <td  >
                                项目介绍：</td>
                                <td>
                                <textarea name="content" placeholder="请输入简短的项目介绍" class="area w600 h60">{$data.content}</textarea>
                            </td>
                        </tr>
                        <tr>
                            <td  >
                                市场分析：</td>
                                <td>
                                <textarea name="scfx" placeholder="请输入简短的市场分析" class="area w600 h60">{$data.scfx}</textarea>
                            </td>
                        </tr>
                        <tr>
                            <td  >
                                运营方式：
                                </td>
                                <td>
                                <textarea name="yyfs" placeholder="请输入简短的运营方式" class="area w600 h60">{$data.yyfs}</textarea>
                            </td>
                        </tr>
                        <tr>
                            <td  >
                                合伙人要求：</td>
                                <td>
                                <textarea placeholder="请输入简短的合伙人要求" name="hhryq" class="area w600 h60">{$data.hhryq}</textarea>
                            </td>
                        </tr>
                        <tr>
                            <td  >
                                已有资源及资金要求：</td>
                                <td>
                                <textarea name="zjyq" placeholder="请输入简短的已有资源及资金要求" class="area w600 h60">{$data.zjyq}</textarea>
                            </td>
                        </tr>
    
</table>
</div>

<!--End 扩展信息-->


 

</div>
<div class="pd-10">
 <input type="submit" name="button" id="button" class="btn" value="提交"> 
</div>
</form>
</div>
<link href="/plugin/webuploader/webuploader.css" rel="stylesheet">
<script src="/plugin/webuploader/webuploader.min.js"></script>
 <script src="/plugin/webuploader/app.js"></script>
<script>
$(function(){
	modImgsList('webuploader');
	wbupload('webuploader',"cyitem","{$data.id}",function(){modImgsList('webuploader')});	
 	$('#myTab a').click(function (e) {
	  e.preventDefault();
	  $(this).tab('show');
	})
});
 
</script>
 
<script language="javascript" src="/plugin/jquery/ajaxfileupload.js"></script>
<script language="javascript" src="{const.STATIC_SITE}/static/js/upload.js"></script>
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script>
{php loadEditor();}
<script language="javascript">
 
var editor=UE.getEditor('content',options)
</script>
{include file='footer.html'}